﻿@if (Request.IsAuthenticated) {
        
        using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "form-logoff" })) {
            @Html.AntiForgeryToken()
            <a class="brand" href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
        }
        <div class="welcome-user">
            @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "brand username", title = "Manage" })
            <span class="brand">Hello, </span>
        </div>
} else {
    <a class="brand" href="@Url.Action("Register", "Account")">Register</a>
    <a class="brand" href="@Url.Action("Login", "Account")">Sign in</a>
}
